<?php
/* @var $this MemberController */
/* @var $model Member */

$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'会员管理'=>array($this->pre_module_url.'/member/admin'),
	'会员管理'=>array($this->pre_module_url.'/member/admin'),
	'添加会员',
);

?>


<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'member-form',
	'enableAjaxValidation'=>true,
	'enableClientValidation'=>true,
)); ?>
	<ul class="form_list form_list2 mt10">
		<li class="title"><span class="fs_14 fw_b">添加会员</span></li>
		<li class="c_f"><span class="tit"><em class="xing">*</em>会员名：</span>
			<div class="cont f_l">
				<?php echo $form->textField($model,'zm_name',array('class'=>"t_ipt w_250",'maxlength'=>32)); ?>
				<?php echo $form->error($model,'zm_name'); ?>
			</div>
		</li>
		<?php if($model->isNewRecord){?>
		<li class="c_f"><span class="tit"><em class="xing">*</em>密码：</span>
			<div class="cont f_l">
				<?php echo $form->textField($model,'zm_psword',array('class'=>"t_ipt w_250",'maxlength'=>32)); ?>
				<?php echo $form->error($model,'zm_psword'); ?>
			</div>
		</li>
		<?php }?>
		<li class="c_f"><span class="tit"><em class="xing">*</em>电子邮箱：</span>
			<div class="cont f_l">
				<?php echo $form->textField($model,'zm_email',array('class'=>"t_ipt w_250",'maxlength'=>32)); ?>
				<?php echo $form->error($model,'zm_email'); ?>
			</div>
		</li>
		<li class="c_f"><span class="tit">性别：</span>
			<div class="cont f_l">
				<?php echo CHtml::radioButtonList("MemPro[zmp_sex]",!empty($model->more)?$model->more->zmp_sex:1,Company::model()->getSex(),array('class'=>'radio','labelOptions'=>array('class'=>'mr10')))?>
			</div>
		</li>
		<li class="c_f"><span class="tit"><em class="xing"></em>QQ号绑定：</span>
			<div class="cont f_l">
				<?php echo CHtml::textField("MemPro[zmp_qq]",!empty($model->more)?$model->more->zmp_qq:"",array('class'=>"t_ipt w_250",'maxlength'=>32)); ?>
			</div>
		</li>
		<li class="c_f"><span class="tit">&nbsp;</span>
			<div class="cont f_l">
				<?php echo CHtml::submitButton(Yii::t('adm',"Save Data"),array('class'=>'mem_btn mem_btn20 mr5'))?>
				<?php echo CHtml::resetButton(Yii::t('adm',"Reset"),array('class'=>'mem_btn mem_btn07'))?>
			</div>
		</li>
	</ul>	
<?php $this->endWidget(); ?>

</div><!-- form -->